package com.yilin.tms.core.commons.annotation;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * API拦截器
 * 添加此拦截器，后台接口会增加权限
 * 需拥有对应权限才能访问
 * */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ApiInterceptor {
    @AliasFor("code")
    String value() default "";
    @AliasFor("value")
    String code() default "";
}
